import request from '@/utils/request'

// 管道维护费设置
// 查询列表
export function listPipelinefee(query) {
  return request({
    url: '/system/pipelinefee/list',
    method: 'get',
    params: query
  })
}

// 查询详细
export function getPipelinefee(postId) {
  return request({
    url: '/system/pipelinefee/' + postId,
    method: 'get'
  })
}

// 新增
export function addPipelinefee(data) {
  return request({
    url: '/system/pipelinefee',
    method: 'post',
    data: data
  })
}

// 修改
export function updatePipelinefee(data) {
  return request({
    url: '/system/pipelinefee',
    method: 'put',
    data: data
  })
}

// 删除
export function delPipelinefee(postId) {
  return request({
    url: '/system/pipelinefee/' + postId,
    method: 'delete'
  })
}

// 预交维护费设置
// 查询列表
export function listPrepayfee(query) {
  return request({
    url: '/system/prepayfee/list',
    method: 'get',
    params: query
  })
}

// 查询详细
export function getPrepayfee(postId) {
  return request({
    url: '/system/prepayfee/' + postId,
    method: 'get'
  })
}

// 新增
export function addPrepayfee(data) {
  return request({
    url: '/system/prepayfee',
    method: 'post',
    data: data
  })
}

// 修改
export function updatePrepayfee(data) {
  return request({
    url: '/system/prepayfee',
    method: 'put',
    data: data
  })
}

// 删除
export function delPrepayfee(postId) {
  return request({
    url: '/system/prepayfee/' + postId,
    method: 'delete'
  })
}
